// 添加Vue Router必要的导入语句
import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Payment from '../views/Payment.vue'
import WechatPayment from '../views/WechatPayment.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/payment',
    name: 'Payment',
    component: Payment
  },
  {
    path: '/wechatPayment',
    name: 'WechatPayment',
    component: WechatPayment
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router